]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
windowManager: Fix a warning
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 13 Jun 2017 03:51:31 +0000 (05:51 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 13 Jul 2017 15:23:54 +0000 (17:23 +0200)
The destroy effect currently relies on a monkey-patched property
added from the map effect. However on X11 it is possible that we
did no map animation for a window that is destroyed when the shell
was restarted or had taken over from another WM. Just use the real
MetaWindow property to avoid a warning in that case.

https://bugzilla.gnome.org/show_bug.cgi?id=781471

js/ui/windowManager.js

index a89c726b4907b23e7cd96a228a90b4252390b37e..f97ed76d7d880ab6ed8503e31a771b14dc8f7f9f 100644 (file)
@@ -1604,7 +1604,7 @@ const WindowManager = new Lang.Class({
             return;
         }
 
-        switch (actor._windowType) {
+        switch (actor.meta_window.window_type) {
         case Meta.WindowType.NORMAL:
             actor.set_pivot_point(0.5, 0.5);
             this._destroying.push(actor);